package com.andyage.admin.action;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.andyage.admin.bean.AdWithdrawBean;
import com.andyage.admin.service.IAdWithdrawService;

@Controller
@RequestMapping("/admin")
public class AdWithdrawAction {
	@Resource
	private IAdWithdrawService iadwithDrawService;
	
	@RequestMapping("/queryWithdrawInfo")
	public void queryWithdrawInfo(AdWithdrawBean drawBean,HttpServletResponse response) {
		try {
			String json = iadwithDrawService.queryWithdrawInfo(drawBean);
			response.setContentType("text/html;charset=UTF-8");
			response.getWriter().print(json);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	@RequestMapping("/updateWithdrawByecmStatus")
	public void updateWithdrawByecmStatus(AdWithdrawBean drawBean,HttpServletResponse response) {
		try {
		String json =	iadwithDrawService.updateWithdrawByecmStatus(drawBean);
		response.setContentType("text/html;charset=UTF-8");
		response.getWriter().print(json);
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}
